#ifndef __LCD1602_H
#define __LCD1602_H

#include "extern.h"
#include "pcf8563.h"

sbit lcd_RS = P1^0;
sbit lcd_RW = P1^1;
sbit lcd_EN = P1^2;


#define DATA_PORT P1

void readbusy(void);
void sentbyte(unsigned char i,unsigned char tybe);
void Init_1602(void);
void Locate_xy(unsigned char x,unsigned char y );
void Displaychar(unsigned char x,unsigned char y, unsigned char wdata);
void Displaypstr(unsigned char x,unsigned char y,unsigned char *str);
void display_time();
void display_tempreture(uint tem);

#endif